package com.csesteel.crm.service.impl;

import com.csesteel.crm.dao.CrmMenuDao;
import com.csesteel.crm.domain.CrmMenu;
import com.csesteel.crm.domain.CrmRole;
import com.csesteel.crm.service.CrmMenuService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Administrator on 2015/5/25 0025.
 */
@Service
public class CrmMenuServiceImpl implements CrmMenuService {
    private Log logger = LogFactory.getLog(CrmMenuServiceImpl.class);

    @Autowired
    private CrmMenuDao crmMenuDao;

    public CrmRole getCrmMenu(Integer id) {
        return null;
    }

    public void saveCrmMenu(CrmMenu crmMenu) {

    }

    public void deleteCrmMenu(String id) {

    }

    @Transactional
    public List<CrmMenu> findAllCrmMenu() {
        return crmMenuDao.findAll(CrmMenu.class);
    }

    public List<CrmMenu> findAllUserByUserId(Integer id) {
        return null;
    }
}
